package com.pig4cloud.pigx.contract.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.pig4cloud.pigx.common.customize.utils.serializer.BigDecimalToPlainStringSerializer;
import lombok.Data;

import java.math.BigDecimal;

/**
 * k线统计查询响应模型
 */
@Data
public class ContractKLineVO {

	/**
	 * 币对id
	 */
	private Long symbolId;

	/**
	 * 币对名
	 */
	private String symbolName;

	/**
	 * 总交易数
	 */
	@JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
	private BigDecimal sumNum;


	/**
	 * 最大交易额
	 */
	@JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
	private BigDecimal maxPrice;


	/**
	 * 最小交易额
	 */
	@JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
	private BigDecimal minPrice;
}
